<?php

declare(strict_types=1);

namespace App\Request\Web;

use Hyperf\Validation\Request\FormRequest;

class FollowRequest extends FormRequest
{

    public function authorize(): bool
    {
        return true;
    }
    protected $scenes = [
        'follow' => ['following_id']
    ];
    public function rules(): array
    {
        return [
            'following_id' => [
                'required',
                'integer'
            ]
        ];
    }

    public function messages(): array
    {
        return [
            'following_id.required' => '被关注者不能为空'
        ];
    }

    public function attributes(): array
    {
        return [
            'following_id' => '被关注者'
        ];
    }
}
